/*
 * config.c
 *
 *  Created on: May 21, 2021
 *      Author: kirk_
 */

#include "config.h"

KDL_TB6612_t Motor[4];
KDL_Encoder_t Encoder[4];
MPU6050_t MPU6050;
HCSR04_t HCSR04;

HeapRegion_t xHeapRegions[] = {
  { (void*)0x24000000,   0x80000     },
  { NULL,   0                        }
};

#ifdef __GNUC__
#define PUTCHAR_PROTOTYPE int __io_putchar(int ch)
#else
#define PUTCHAR_PROTOTYPE int fputc(int ch, FILE* f)
#endif /* __GNUC__ */

PUTCHAR_PROTOTYPE
{
	HAL_UART_Transmit(&huart8, (uint8_t*)&ch, 1, 0x1FFFF);
	return ch;
}
